package com.repu.dyz.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @ClassNameCustomUsernamePasswordToken
 * @Description
 * @Author: daiyizheng
 * @Date2020/12/11 12:09 上午
 * @Version V1.0
 **/
public class CustomUsernamePasswordToken extends UsernamePasswordToken {
    private String jwtToken;

    public CustomUsernamePasswordToken(String jwtToken) {
        this.jwtToken = jwtToken;
    }

    @Override
    public Object getPrincipal() {
        return jwtToken;
    }

    @Override
    public Object getCredentials() {
        return jwtToken;
    }

}
